package info.nixbear.tgcms.admin.shared.request;

import info.nixbear.tgcms.services.dao.EntityServiceLocator;
import info.nixbear.tgcms.services.dao.TemplateDao;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

@Service(value=TemplateDao.class, locator=EntityServiceLocator.class)
public interface TemplateRequest extends RequestContext {
	
	Request<List<TemplateProxy>> listAll();

	Request<TemplateProxy> get(Long id);

	Request<TemplateProxy> put(TemplateProxy entity);

	Request<Void> delete(TemplateProxy entity);

}
